package com.demo.java.disruptor.netty.client;

import com.demo.java.disruptor.netty.common.TranslatorData;
import com.demo.java.disruptor.netty.common.TranslatorDataWrap;
import com.demo.java.disruptor.netty.common.AbstractConsumer;

public class ClientConsumer extends AbstractConsumer {
    public void postOnEvent(TranslatorDataWrap translatorDataWrap) {
        TranslatorData data = translatorDataWrap.getData();
        System.out.println("client received, name: " + data.getName() + ", msg: " + data.getMsg());
    }
}
